import request from '@/utils/request.js';
// 科室列表
export const depart = () => {
  return request({
    url: 'pc/Depart/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
// 添加科室
export const addDepart = (data) => {
  console.log(data);
  return request({
    url: 'pc/Depart/add',
    method: 'post',
    data: {
      ...data,
    },
  }).then((res) => {
    return res;
  });
};
// 删除科室
export const deleteDepart = (data) => {
  console.log(data);
  return request({
    url: 'pc/Depart/del',
    method: 'post',
    data: {
      ...data,
    },
  }).then((res) => {
    return res;
  });
};
// 医生列表
export const doctor = () => {
  return request({
    url: 'pc/doctor/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
